package cn.tedu.demo03zl.mapper;

import cn.tedu.demo03zl.entity.Exh;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ExhMapper {

    @Select("select * from exh order by id desc")
    List<Exh> select();

    @Insert("insert into exh values(null,#{title},#{author},#{content},null,#{created},0)")
    void add(Exh exh);
}
